package com.ayz.gateway.core.datasource;
/**
 * @ClassName DatasourceType
 * @Description TODO: 数据源类型 不同类型的数据源管理不同类型的RPC连接
 * @Author 快乐的星球
 * @Date 2023/5/9 10:55
 * @Version 1.0
 **/
public enum DatasourceType {
    HTTP(1,"HTTP"),
    DUBBO(2,"Dubbo")
    ;
    private int code;
    private String name;

    DatasourceType(int code, String name) {
        this.code = code;
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
